Added profile editing functionality.