fix login bug with FF