add login and password validation