fixed crash on ios6 login button