Userprofile modification

I grouped the oldpassword and newpassword parameter into one so that on schema check, it doesn't have 2 optional fields which results in extra conditional statements to check the optional fields.