fixed empty password bug