Created a notice message partial and made appropriate changes to controller code to set error messages