further refactoring of login css/js