Added last minute function to check if user is logged in, if not it redirects them back to the login page.