check username before selecting from db
check for invalid username before selecting from db