little change for video
Support offline login (big change)