add login controller and security and database config