form input and mass assignment issue fixed