Finished backend part of profile updating.