made changes to login page to connect to DB and changed config file for DB