made changes to p_editprofile() method by adding a DB sanitized update and a router redirect