Adding simple validation