use tabs
remove debug print
use username from db (and not from client), should fix case weirdness