Text field's text aligment to center and changing of font style and color is not working