validations for login done, errors displayed at front page