Fourth day commit

automatic database setup;
Log-in validation logic implemented