fixed bug where enter submitted form