login mechanism properly working in firefox