Adding in user authentication