SQL login query change

Change to proper sql query