added role to shared preferences