Fixed controller logic for create.