Added profile editing functionality