seccontHandler() now works as intended