fixed issue #35

Fixed issue that now enables user to be redirected to profile page after updating profile details.