fixed redirection for editprofile