user creation and saving in the db