adding redirect_uri if it is set in config