updated site with 401 unauthorized error. also changed the chain of operations for checking current_admin before post, put, delete