add login as other function