I cannot make spring security works again, so I removed it to reimplement it in a better way