Form Validation and DB Management