Fix user profiles

Re-added functions that are called on the user profiles page