fix the event code
add new password validation