fixed crash on login when keyboard is open as well as long lag on segue