Added persistent login tokens and set spring security to debug
Created a custom spring security filter with custom success and failure handlers