Fixes issue #18 - App crashes if no network

I am using a static variable to check if user is logged in or not, there may be a better way though. Let me know if anything should be improved.