fix bug in create method: not displaying errors correctly