Add server side logic for updating profile