finished basic user authentication