annoying javascript error on login required