This code is write in cakePhp and will change the status and profile of the user. Right now it changes to the default values. But it can easily modified to take the values from user