working on logging in
updated sql for logging in