Fixed security bug in assignment #7