Check form validity on server