call code iff user is logged in
Disable a route without having to comment out the entry in the routes file.
call code iff user has right permission for resource
Use when you want to require the user to be logged in on a private server or the server is public.
call code iff user is a server admin
get user if logged in
Return user based on request object
Handles post from the sign up page.