Fixed login bug, modified database connection config