changes to user_model, fixed callback error fixed in socket