Added security key functionality and updated the sample page