Task creation was failing on sign up

Tasks were not being created on user sign up because projects model was not getting saved.