added login function