pre checking if logged in when checkking is admin