Added login validator to give the user a proper message