fix bug where user details would be incorrect if admin