Update AuthenticationProvider.php

checkAuthentication