added check for empty password fields