1. Added session part to get user id in Registration#register,drop,view method. 2. Also slightly modified the key names for the return json dict in the above method