Fixed creating record in database. Added some validation for EnvironmentForm. Fist try to change Tab Environment after some event...