added protection to password fields