restored message for unsuccessful login
implementation uniqueness check without mongo