improved login error checking and display on mobile devices
Merge branch 'login-improve' into develop