A simple fields validation made in Javascript