ADD Some logs to the authentication middleware