Adding test for password field with fixing some problems along with it.