resolving password bug