Removed duplicate function
Added authService function to ensure that a user is logged in

fixes #13