restored field validation in loginViewController