corrected errors in security route