Modify getUserIdByNameAndPassword to check password correctly