Update function login by broff