If user object is null, redirect back to login page

Need to add this to other controllers as well