fixed issue #32

Fixed issue that now allows users to update profile and redirect to profile page.