added validation messages to login