change username to userid as the flag of login