fixed form loop issue by declaring class in html inside erb tag at top of _form.html
fixed form loop issue by declaring class in html inside erb tag at top of form html page