saving data to db from html form via rest works