Validations for login and password length added.