Error checking, typo on footer

added error checking to users controller to make sure while users are
logged off they dont try to access to logged in areas causing sql errors