generating error_msg after form submitting. Now it display all errors
csrf_token included