changed login function