updating users controller for the profile pages