Use window(load) rather than document(ready) on sign-in screen.