Form is displayed for a while and then shows 404 not found error.