Set validation for login and password