Login works w/ SQL query