Modified code to show proper message if mass assignment fails

Modified code to show proper message if mass assignment fails