added the logger into this application
added authentication mechanism that uses the database for validation