But the issue here lies in the form attributes being written on following lines. Somehow, this is not being accepted.
<form id="cat-photo-form" action = "/submit-cat-photo">
There seems to be the use of the enter key, which could bring the error,.
Thanks man , finally after two days found a real solution