Fixed random HTML element appearing

Added "offline" button animation and tried to fix login() again