added simple validation and basic navigation