added security code functionality for room