fix issue with detecting admin status of user