fix login password error no prompts error, and add auto query function