Add new function of LoginForm