Fixed changing user
Added REST API