Add isAdmin function to User.