added user name and password validation