added security to doctor patient views