fixed null password bug