Login using db, password management