add check for login and password during registration