Check to password at login

Add check to password at login and add test syntax for access to
invalid-name and invalid-password