started working on validation

at this moment there is a database connection error