added sharedpreference to save logged in state