removed login function