fix branch user login bug