implemented sharedpreferences to stay logged in when once done