adding JS simple validation