Updated password validation to work with SSL certificate