Prevent use of tabs if user is not logged in
Print errors to stderr; remove popping of dialog boxes for errors on MySQL queries