Fixed a bug in iOS 7 login view controller