select with limit 1 for authentication