Overloaded the wrapper for checking the user is logged in. Can now check permissions...