added register button to login menu when offline.