Fix for password validation