validation of user entry form