fixing password save issue