Moved edit profile logic from controller actions to command/query classes