Added checks for internet connectivity to login

Added utility class to check for connectivity
Added extra permissions to AndroidManifest
Put checks for internet connectivity in relevant locations