be able to insert new record from browser and display error message if input is wrong