Updated preHandle to check ACS url in request with that in metadata