a little JS validation on add form