cleanup and add error reporting
hide menu on login