removed the unused login function