edit profile workings

probably need to wait for success function to finish completely before
setting $scope variables for ng-model in form