Make edit profile work