Bug fixes to login screen, improvements to field validation