fix login page online/offline stuff - fixes #47