Fix exploit

Redo config handler and add authentication.