Restricting functionality when not logged in

Adding conditionals to redirect to home for restricted methods