Added regex validation to password field