fixed password fields not being cleared and error-highlighted