finally resolve login problem