Fixing issue with special chars in password element validation.