Fix 22 - Check if the password format is correct before validation