Added validation to login screen