added chek for login and password fields