finished login and user authentication