Register works with sending object via REST