Bug fix,register a new user,then login in.
Bug fix,register a new user,then login in.